/*
Copyright (C) 2014  Johan Degraeve

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/gpl.txt>.

*/

package helpdiabetesj2me;

/**
 *
 * @author Johan
 */
public class SearchString {

    public final static int maxenteredstringlength = 20;// maximum length, I assume in reality it will never be 20 because the user will never enter 20 characters

    // this array contain the letters in chars, entered by the user
    public char[] enteredstring = null;
    public int enteredstringlength; // the actual number of letters already in the array
    
    /**
     * Creates a new instance of enteredstring
     */
    /* size is the maximum size of the enteredstring */
    public SearchString() {
        enteredstring = new char[maxenteredstringlength+2];//to avoid any arrayindexoutofbondsexceptions
        enteredstringlength = 0;
    }
}
